net: macb: write mac address when initialization
authorBo Shen <[email protected]>
Wed, 22 Oct 2014 06:45:56 +0000 (14:45 +0800)
committerTom Rini <[email protected]>
Mon, 17 Nov 2014 13:47:15 +0000 (08:47 -0500)
commitb2eff088699ac6b846b1ff34c2bb6549f358e6a0
tree39af389a0a08fb5c21153972e76abd45e4305e93
parentbdf790fabc8185112b3f699c8a25aab09c50239e
net: macb: write mac address when initialization

When boot up without mac address setting, it will give the warning
message like: "Warning: failed to set MAC address", however when
execute network related command, it still execute them without any
warning information.

With this patch, it will exit directly with following information:
"gmac0: mac address is not valid"

It also solve the problem after bootup then set mac address and the
mac address won't set to net device issue.

Signed-off-by: Bo Shen <[email protected]>
Tested-by: Boris Brezillon <[email protected]>
Signed-off-by: Andreas Bießmann <[email protected]>
drivers/net/macb.c